package com.czn.service;

import com.czn.entity.Doctor;
import com.czn.vo.ResponseResult;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

/**
 * @author ChenZeNan
 * @create 2021-04-15 19:09
 */
public interface IDoctorService {

    List<Doctor> findAllDoctor();

    PageQuery<Doctor> findDoctorList(Integer pageNo, Integer pageSize, String name, String certId);

    ResponseResult addDoctor(Doctor doctor);

    ResponseResult editDoctor(Doctor doctor);

    /*根据记录id查找*/
    Doctor findDoctorById(Integer id);

    /*根据医生id查找*/
    Doctor findDoctorByUserId(Integer doctorId);

    ResponseResult deleteDoctorById(Integer id);

    List<Doctor> findDoctorListByDepartment(String department);
}
